﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Hook.Environmental.Props
{
    class BoundingWall : Prop
    {
        public BoundingWall(Vector3 Position, Vector3 Dimension)
            : base()
        {
            this.Position = Position;
            Frame.ReferencePoint.Position = Position;
            //Frame.OriginOffset = Position;

            List<Vector3> VO = new List<Vector3>();
            VO.Add(new Vector3(Dimension.X / 2, Dimension.Y / 2, 0));
            VO.Add(new Vector3(-Dimension.X / 2,Dimension.Y / 2, 0));
            VO.Add(new Vector3(-Dimension.X / 2, -Dimension.Y / 2, 0));
            VO.Add(new Vector3(Dimension.X / 2, -Dimension.Y / 2, 0));
            Frame.SetPoints(VO);

            Mass = Inertia = float.PositiveInfinity;
            GravityOn = false;

            for (int l = 0; l < 22; l++)
                CollisionLayer.Add(l);
        }
    }
}
